<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script>
    const obj={
        aaa(){
            setTimeout(function () {
                console.log(this);//window
            })
            setTimeout(()=>{
                console.log(this);//obj对象
            })
        }
    }
    obj.aaa()
    const a=new Object();
</script>
</body>
</html>